{{include template('public/header','home')}}

<div class="row">
    <div class="col-md-4">
        <!-- 焦点图 开始 -->
        <div id="myCarousel" class="carousel slide" style="margin: 40px 0 20px;">
            <!-- 轮播（Carousel）指标 -->
            <ol class="carousel-indicators">
                <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
                <li data-target="#myCarousel" data-slide-to="1"></li>
                <li data-target="#myCarousel" data-slide-to="2"></li>
            </ol>
            <!-- 轮播（Carousel）项目 -->
            <div class="carousel-inner">
                {{hits field="title,url,status,thumb" catid="$catid" thumb="1" limit="3"}}
                {{if $r.thumb != ''}}
                <div class="item {{if $r.index eq '0'}}active{{/if}}">
                    <img src="{{$r.thumb}}" alt="{{$r.title}}" />
                    <div class="carousel-caption">{{cutstr($r.title, 35)}}</div>
                </div>
                {{/if}}
                {{/hits}}
            </div>
            <!-- 轮播（Carousel）导航 -->
            <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
                <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
                <span class="sr-only">Previous</span>
            </a>
            <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
                <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
                <span class="sr-only">Next</span>
            </a>
        </div>
        <!-- 焦点图 结束 -->
        <div class="page-header">
            <h1>TAG标签<small></small>
            </h1>
        </div>

        {{foreach $tags as $item}}
        <a href="/search/index/index?modelid=1&q={{$item.tag}}" target="_blank"><span class="label label-primary">{{$item.tag}}</span></a>
        {{/foreach}}
    </div>
    <div class="col-md-4">
        <div class="page-header">
            <h1>特别推荐<small></small>
            </h1>
        </div>
        <ul>
            {{hits field="title,url,status" catid="$catid" limit="5"}}
            {{if $r.title != ''}}
            <li>-<a href="{{$r.url}}" title="{{$r.title}}" target="_blank">{{cutstr($r.title, 70)}}</a></li>
            {{/if}}
            {{/hits}}
        </ul>
        <div class="page-header">
            <h1>最近更新<small></small>
            </h1>
        </div>
        <ul>
            {{hits field="title,url,status" catid="$catid" limit="9"}}
            {{if $r.title != ''}}
            <li>-<a href="{{$r.url}}" title="{{$r.title}}" target="_blank">{{cutstr($r.title, 70)}}</a></li>
            {{/if}}
            {{/hits}}

        </ul>
    </div>
    <div class="col-md-4">
        <div class="page-header">
            <h1>站点介绍<small></small>
            </h1>
        </div>
        <div class="right_top">
            <a ><img src="{{STATIC_URL}}/home/default.jpg"></a>
            <a  class="ptitle">本站为TickyCMS的演示站点</a>
            <p class="pic_p">TickyCMS采用OOP（面向对象）方式自主开发的框架。框架易扩展，是一款高效开源的内容管理系统，产品基于PHP+Mysql架构...</p>
        </div>
        <div class="right_bottom">
            <p class="pic_p">TickyCMS是一款轻量级开源的内容管理系统，采用OOP方式自主开发的框架(TickyPHP)。系统易扩展，是一款高效开源的内容管理系统，产品基于PHP+Mysql架构，可运行在Linux、Windows、MacOSX、Solaris等各种平台上。</p>
        </div>
    </div>
</div>

<div class="clearfix"></div>
<div class="guanggao">
    <!-- 自定义广告位：更改这里，请登录后台->系统管理->自定义配置 -->
    <h1>免费又好用的CMS建站系统，就选TickyCMS!</h1>
</div>
{{$debugging}}
{{include template('public/footer','home')}}